package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.Set;


/**
 * The persistent class for the VER_CONTRATO database table.
 * 
 */
@Entity
@Table(name="VER_CONTRATO")
public class VerContrato implements Serializable {
	private static final long serialVersionUID = 1L;
	private long verContratoId;
	private Date tsCrea;
	private Date tsUltModif;
	private String usrCrea;
	private String usrUltModif;
	private String verContrato;
	private Set<Contrato> contratos;

    public VerContrato() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="VER_CONTRATO_ID", unique=true, nullable=false)
	public long getVerContratoId() {
		return this.verContratoId;
	}

	public void setVerContratoId(long verContratoId) {
		this.verContratoId = verContratoId;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="TS_CREA")
	public Date getTsCrea() {
		return this.tsCrea;
	}

	public void setTsCrea(Date tsCrea) {
		this.tsCrea = tsCrea;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="TS_ULT_MODIF")
	public Date getTsUltModif() {
		return this.tsUltModif;
	}

	public void setTsUltModif(Date tsUltModif) {
		this.tsUltModif = tsUltModif;
	}


	@Column(name="USR_CREA", length=15)
	public String getUsrCrea() {
		return this.usrCrea;
	}

	public void setUsrCrea(String usrCrea) {
		this.usrCrea = usrCrea;
	}


	@Column(name="USR_ULT_MODIF", length=15)
	public String getUsrUltModif() {
		return this.usrUltModif;
	}

	public void setUsrUltModif(String usrUltModif) {
		this.usrUltModif = usrUltModif;
	}


	@Column(name="VER_CONTRATO", nullable=false, length=10)
	public String getVerContrato() {
		return this.verContrato;
	}

	public void setVerContrato(String verContrato) {
		this.verContrato = verContrato;
	}


	//bi-directional many-to-one association to Contrato
	@OneToMany(mappedBy="verContrato")
	public Set<Contrato> getContratos() {
		return this.contratos;
	}

	public void setContratos(Set<Contrato> contratos) {
		this.contratos = contratos;
	}
	
}